home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: in2.uu.net!allegra!alice!ark
- From: ark@research.att.com (Andrew Koenig)
- Subject: Re: Is it possible to use templates with structures?
- Message-ID: <DM494E.MB9@research.att.com>
- Organization: AT&T Research, Murray Hill NJ
- References: <4eq9s5$l14@nntp.hut.fi>
- Distribution: inet
- Date: Thu, 1 Feb 1996 21:31:25 GMT
-
- In article <4eq9s5$l14@nntp.hut.fi> casper@lk-hp-10.hut.fi (Casper Gripenberg) writes:
-
- > Can I do:
-
- > template<class T>
- > struct Foo {
- > T *data;
- > };
-
- Sure -- the only difference between struct and class is the default visibility.
- --
- --Andrew Koenig
- ark@research.att.com
-